package com.woniuxy.core.annotation;

import org.springframework.stereotype.Component;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ ElementType.FIELD, ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DoubleValueConstraintValidator.class)
public @interface DoubleValue {
    String message() default "必须为double类型";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
